import request from '@/utils/request'
//获取对话连接地址
export function getConnection() {
    return request({
        url: '/chat/connection/getConnection',
        method: 'get'
      })
}

//获取角色
export function getRole(userId) {
  return request({
    url: '/chat/chatting/getUserRole/' + userId,
    method: 'get'
  })
}

//获取用户头像
export function getUserAvatar(data) {
  return request({
    url: '/chat/chatting/getUserAvatar',
    method: 'post',
    data: data
  })
}
